package de.thw.web.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import de.thw.web.dao.PermissionDAO;
import de.thw.web.model.Permission;
import de.thw.web.service.PermissionService;

@Service
public class PermissionServiceImpl extends AbstractServiceImpl<Permission> implements
		PermissionService {

	@Autowired
	private PermissionDAO daoRight;

	// /////////////////////////////////////////////////////////////////////////////

	@Transactional
	public void save(Permission object) {
		super.save(object, this.daoRight);
	};

	@Transactional
	public Permission load(String uid) {
		return super.load(uid, this.daoRight);
	};

	@Transactional
	public List<Permission> getAll() {
		return super.getAll(this.daoRight);
	};

};